/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Represents an edge in a graph
 */
public class Edge {

        /*
         * The first end of the edge, can represent a vertex or a community
         */
        public int firstEnd;
        /*
         * The second end of the edge, can represent a vertex or a community
         */
        public int secondEnd;

        /**
         * A constructor taking the ends of the edge
         * @param end1 The first end of the edge, can represent a vertex or a community 
         * @param end2 The second end of the edge, can represent a vertex or a community
         */
        public Edge(int end1, int end2)
        {
            firstEnd = end1;
            secondEnd = end2;
        }

        /**
         * A copy constructor
         * @param e an edge to clone
         */
        public Edge(Edge e)
        {
            firstEnd=e.firstEnd;
            secondEnd=e.secondEnd;
        }
}
